import request from '@/utils/request'

export const login = (form) => {
  return request({
    url: 'api/user/login',
    method: 'post',
    params: form,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

export const getInfo = () => {
  return request({
    url: 'api/user/getInfo',
    method: 'post'
  })
}

export const logout = () => {
  return request({
    url: 'api/user/logout',
    method: 'post'
  })
}
